package com.mall.service;

import com.mall.domain.OrderCopy;

import java.util.Date;
import java.util.List;

public interface IOrderService {

	//查询全部订单
	List<OrderCopy> findAllOrder();
	//通过type查询订单
	List<OrderCopy> findAllOrderByType(Integer type);

	List<OrderCopy> findOrderById(String order_code);

	//	删除订单 :将订单的flag设为1，默认是0
	Integer deleteOrder(String order_code);

	// 支付订单
	Integer payOrder(Date payment_time, String order_code);

    // 完成订单
    Integer endOrder(Date end_time,String order_code);

    //查询订单以及详情
	List<OrderCopy> findAllOrderDetails();

}
